home *** CD-ROM | disk | FTP | other *** search
- /*
- * Program to output 10 pages of graphics
- * text using the VDI graphics text feature.
- */
-
- main()
- {
- int workout[66];
- int dev_handle;
- int i,j;
- char input_string[2];
-
- static int echo_xy[] = {0, 0};
- static int workin[] = {1,1,1,1,1,1,1,1,1,1,
- 1,'D','I','S','P','L','A','Y',' '};
-
- /* initialize the device and put characteristics in workout */
- v_opnwk(workin,&dev_handle,workout);
-
- for (i = 1; i <= 10; ++i) {
-
- for (j = 1; j <= 25; ++j) {
-
- /* output graphics text */
- v_gtext(dev_handle,1,j*911,
- "This is a test of the VDI graphics text.");
- v_gtext(dev_handle,16384,j*911,
- "This is a test of the VDI graphics text.");
- }
-
- /* clear the screen */
- v_clrwk(dev_handle);
- }
-
- /* close workstation */
- v_clswk(dev_handle);
-
- }